package com.cmbc.thread;
/**
 * 创建多线程的方式2.继承Thread实现Runable接口
 * @author MilchstraBe_
 *
 */
public class App2 {

	public static void main(String[] args) {
		Thread thread=new Thread(new Window2());
		thread.setName("窗口1");
		thread.start();
		Thread thread2=new Thread(new Window2());
		thread2.setName("窗口2");
		thread2.start();
	}

}
